negotiator.qualitymeasures.logmanipulation
Class TournamentMeasures

java.lang.Object
  extended by negotiator.qualitymeasures.logmanipulation.TournamentMeasures

public class TournamentMeasures
extends java.lang.Object

Class which calculates statistics from the measures derived from the outcomes log. First the outcomes file is parsed and the results of all matches are stored. Following, averages and standard deviations are calculated per agent/opponent model/acceptance condition. Finally, the results are saved in a separate xml file. Using the main a tournament measures log can be created afterwards.

Author:
Mark Hendrikx, Alex Dirkzwager

Constructor Summary
TournamentMeasures()
           
 
Method Summary
static OrderedSimpleElement calculateMeasures(java.util.ArrayList<OutcomeInfoDerived> outcomes, java.util.ArrayList<java.util.ArrayList<OutcomeInfoDerived>> runs, java.util.HashSet<java.lang.String> agents)
          Calculates all quality measures and return an XML-object with the results.
static void main(java.lang.String[] args)
          Can be optionally used to create a tournament results log afterwards.
static void runTournamentMeasures(java.lang.String in, java.lang.String out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TournamentMeasures

public TournamentMeasures()
Method Detail

main

public static void main(java.lang.String[] args)
Can be optionally used to create a tournament results log afterwards.

Parameters:
args -

runTournamentMeasures

public static void runTournamentMeasures(java.lang.String in,
                                         java.lang.String out)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

calculateMeasures

public static OrderedSimpleElement calculateMeasures(java.util.ArrayList<OutcomeInfoDerived> outcomes,
                                                     java.util.ArrayList<java.util.ArrayList<OutcomeInfoDerived>> runs,
                                                     java.util.HashSet<java.lang.String> agents)
Calculates all quality measures and return an XML-object with the results.

Parameters:
outcomes - stored as a single array (duplicates runs, but easier to write specific methods)
runs - with outcomes
agents -
Returns:
XML-object with results of calculated measures.